<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>棋路未通 - 水墨五子棋</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            background: #f5e8c9;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            font-family: 'Microsoft YaHei', serif;
            color: #5c3d1e;
            background-image: 
                radial-gradient(circle at 20% 30%, rgba(139, 0, 0, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(139, 0, 0, 0.05) 0%, transparent 40%);
        }
        
        .container {
            text-align: center;
            padding: 20px;
            max-width: 600px;
        }
        
        .top-decoration {
            height: 8px;
            background: #8b0000;
            width: 80%;
            margin: 0 auto 30px;
            position: relative;
        }
        
        .top-decoration::before, .top-decoration::after {
            content: "";
            position: absolute;
            top: 0;
            width: 16px;
            height: 16px;
            background: #8b0000;
            border-radius: 50%;
        }
        
        .top-decoration::before {
            left: -8px;
        }
        
        .top-decoration::after {
            right: -8px;
        }
        
        .error-number {
            font-size: 8rem;
            font-weight: bold;
            color: #8b0000;
            margin: 20px 0;
            text-shadow: 3px 3px 0 rgba(139, 0, 0, 0.2);
        }
        
        .error-title {
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: #5c3d1e;
            position: relative;
        }
        
        .error-title::after {
            content: "";
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: #8b0000;
        }
        
        .error-message {
            font-size: 1.2rem;
            margin: 30px 0;
            line-height: 1.6;
        }
        
        .chessboard {
            width: 200px;
            height: 200px;
            margin: 20px auto;
            background: #e6c89c;
            border: 2px solid #8b0000;
            position: relative;
            display: grid;
            grid-template-columns: repeat(15, 1fr);
            grid-template-rows: repeat(15, 1fr);
        }
        
        .chessboard::before {
            content: "";
            position: absolute;
            top: 5px;
            left: 5px;
            right: 5px;
            bottom: 5px;
            background-image: 
                linear-gradient(to right, #5c3d1e 1px, transparent 1px),
                linear-gradient(to bottom, #5c3d1e 1px, transparent 1px);
            background-size: 13.3px 13.3px;
            opacity: 0.7;
        }
        
        .crack {
            position: absolute;
            width: 100%;
            height: 3px;
            background: #8b0000;
            top: 50%;
            left: 0;
            transform: translateY(-50%);
            z-index: 2;
        }
        
        .btn {
            display: inline-block;
            padding: 12px 30px;
            background: #8b0000;
            color: #f5e8c9;
            text-decoration: none;
            font-size: 1.1rem;
            margin-top: 20px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .btn:hover {
            background: #a52a2a;
            transform: translateY(-3px);
            box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        }
        
        .btn::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: 0.5s;
        }
        
        .btn:hover::before {
            left: 100%;
        }
        
        .footer {
            margin-top: 40px;
            color: #8b0000;
            font-size: 0.9rem;
        }
        
        .yin-yang {
            width: 40px;
            height: 20px;
            background: linear-gradient(to right, #5c3d1e 50%, #f5e8c9 50%);
            border-radius: 100% 0 0 100% / 50% 0 0 50%;
            margin: 10px auto;
            position: relative;
        }
        
        .yin-yang::before, .yin-yang::after {
            content: "";
            position: absolute;
            border-radius: 50%;
            width: 8px;
            height: 8px;
        }
        
        .yin-yang::before {
            background: #f5e8c9;
            top: 6px;
            left: 10px;
            box-shadow: 0 0 0 8px #5c3d1e;
        }
        
        .yin-yang::after {
            background: #5c3d1e;
            top: 6px;
            right: 10px;
        }
        
        @media (max-width: 480px) {
            .error-number {
                font-size: 6rem;
            }
            
            .error-title {
                font-size: 2rem;
            }
            
            .chessboard {
                width: 150px;
                height: 150px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="top-decoration"></div>
        
        <div class="error-number">404</div>
        
        <h1 class="error-title">棋路未通</h1>
        
        <p class="error-message">
            此局未成，落子无方<br>
            君欲寻之棋路，已化云烟散
        </p>
        
        <div class="chessboard">
            <div class="crack"></div>
        </div>
        
        <a href="index.html" class="btn">
            <i class="fas fa-chess-board"></i> 重归棋局
        </a>
        
        <div class="footer">
            <div class="yin-yang"></div>
            <p>水墨五子棋 © 2023 | 棋道如水 润物无声</p>
        </div>
    </div>
    
    <script>
        // 添加一个简单的棋子作为点缀
        document.addEventListener('DOMContentLoaded', function() {
            const chessboard = document.querySelector('.chessboard');
            
            // 创建一个黑色棋子
            const piece = document.createElement('div');
            piece.style.position = 'absolute';
            piece.style.width = '14px';
            piece.style.height = '14px';
            piece.style.borderRadius = '50%';
            piece.style.background = 'radial-gradient(circle at 30% 30%, #555, #000)';
            piece.style.boxShadow = '0 2px 4px rgba(0,0,0,0.5)';
            piece.style.top = '45%';
            piece.style.left = '45%';
            piece.style.zIndex = '3';
            
            chessboard.appendChild(piece);
        });
    </script>
</body>
</html>